#!/bin/bash

# retrieve stock quote file from EODDATA.com
cd /home/voellenk/stratlab_workdir/stratlab
/usr/bin/php ./quotesRetriever.php --current --splits >> /home/voellenk/space/log/quotesRetriever.log

# insert missing data into database
/usr/bin/php ./quoteFilesToDb.php --insertoverlapping --insertmissing >> /home/voellenk/space/log/quoteFilesToDb.log

# run R script to filter for signals
./TOOLS/R/nightlyRun.R >> /home/voellenk/space/log/nightlyRun.R.log

# send status mail
/usr/bin/php ./dailymail.php address=andiv@gmx.li >> /home/voellenk/space/log/dailymail.log


